﻿<UserControl x:Class="NewMarkersSample.Pages.PieChartItemEditor"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0">
	<Grid Background="White">
		<Grid.Resources>
			<Style TargetType="{x:Type TextBlock}">
				<Setter Property="VerticalAlignment" Value="Center"/>
				<Setter Property="HorizontalAlignment" Value="Right"/>
			</Style>
		</Grid.Resources>
		
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>

		<TextBlock Grid.Column="0" Grid.Row="0">Caption:</TextBlock>
		<TextBox Name="captionTb" Grid.Column="1" Grid.Row="0" Margin="5" TextChanged="OnTextChanged"/>
		
		<TextBlock Grid.Column="0" Grid.Row="1">Value:</TextBlock>
		<TextBox Name="valueTb" Grid.Column="1" Grid.Row="1" Margin="5" TextChanged="OnTextChanged"/>
		
		<TextBlock Grid.Column="0" Grid.Row="2">Color:</TextBlock>
		<Rectangle Name="colorRect" Grid.Column="1" Grid.Row="2" Margin="10,1,10,1" Fill="{Binding SelectedBrush, ElementName=colorSelector}"/>
		
		<d3:ColorSelector Name="colorSelector" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" Margin="5"/>
	</Grid>
</UserControl>
